package pile.pay.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * <p>
 * 充电金配置表
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-29
 */
@Getter
@Setter
@TableName("sys_charging_gold_config")
@ApiModel(value = "ChargingGoldConfig对象", description = "充电金配置表")
public class ChargingGoldConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("充电金配置表")
    @TableId(value = "charging_gold_config_id", type = IdType.AUTO)
    private Integer chargingGoldConfigId;

    @ApiModelProperty("电站id")
    private Integer stationId;

    @ApiModelProperty("充值满足金额")
    private BigDecimal rechargeSatisfy;

    @ApiModelProperty("赠送金额")
    private BigDecimal giveAwayAmount;

    @ApiModelProperty("活动开始时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date activityStartTime;

    @ApiModelProperty("活动结束时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date activityEndTime;

    @ApiModelProperty("活动状态  1/活动中 2/已结束")
    private Integer activeStatus;

    @ApiModelProperty("电站名称")
    private String stationName;

    @ApiModelProperty("是否删除，1是0否")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("删除时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("乐观锁")
    @Version
    private Integer version;

    @ApiModelProperty("赠送电量")
    private Integer givePower;

    @ApiModelProperty("赠送优惠券id")
    private Integer couponId;


}
